﻿using System.Collections.Generic;

namespace Infrastructure.ExternalService.Core.Requests
{
    public class ReleaseInterceptsRequest
    {
        /// <summary>
        /// 店铺标识
        /// </summary>
        public string PlatformAppCode { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 是否需要释放全部
        /// </summary>
        public bool ForceReleaseAll { get; set; }

        /// <summary>
        /// 学员列表
        /// </summary>
        public List<StudentRequest> Students { get; set; }
        
        /// <summary>
        /// 操作人信息
        /// </summary>
        public string ReleaseOperator {get; set; }  
        
        /// <summary>
        /// 操作人信息
        /// </summary>
        public string ReleaseOperatorName {get; set; }
    }

    /// <summary>
    /// 学员信息
    /// </summary>
    public class StudentRequest
    {
        /// <summary>
        /// 学员姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 学员手机
        /// </summary>
        public string Mobile { get; set; }
        
        /// <summary>
        /// 商品信息列表
        /// </summary>
        public List<ProductRequest> Products { get; set; }
    }

    public class ProductRequest
    {
        /// <summary>
        /// 班级标识
        /// </summary>
        public string ProductId { get; set; }
        
        /// <summary>
        /// 商品序列号
        /// </summary>
        public string SequenceNo { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

    }
}